package com.jwsoft.manager.core.dao.mapper;

import com.jwsoft.manager.common.vo.bigScreen.analysisXq.AddressSourceVO;
import com.jwsoft.manager.common.vo.eduAddress.EduAddressQueryVO;
import com.jwsoft.manager.common.vo.eduAddress.EduAddressStatisticsVO;
import com.jwsoft.manager.common.vo.eduAddressTree.AddressBoundCheckVO;
import com.jwsoft.manager.core.dao.model.EduAddress;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 地址表 Mapper 接口
 * </p>
 *
 * @author wangtao
 * @since 2022-11-24
 */
@Mapper
public interface EduAddressMapper extends BaseMapper<EduAddress> {
    AddressSourceVO getAddressSource(Map<String, Object> record);

    List<AddressBoundCheckVO> queryBoundLessAsLeafNodes(@Param("areaType") String areaType,
                                                        @Param("mixNum") Integer mixNum,
                                                        @Param("parentId") Long parentId,
                                                        @Param("schoolId") String schoolId);

    List<AddressBoundCheckVO> queryBoundLeafNode(@Param("parentId") Long treeId, @Param("schoolId") String schoolId);

    List<EduAddress> getList(EduAddressQueryVO vo);

    List<EduAddressStatisticsVO> toBeReviewedAddressStatistics(EduAddressQueryVO vo);
}
